package com.wfuhui.modules.book.dao;

import com.wfuhui.modules.book.entity.CartEntity;
import com.wfuhui.modules.sys.dao.BaseDao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 书架
 * 
 * @author lizhengle
 * ""
 */
@Mapper
public interface CartDao extends BaseDao<CartEntity> {

	CartEntity queryByBookId(Integer bookId);

	void addNum(Integer bookId);

	void deleteByBookId(@Param("memberId")Long memberId, @Param("bookId")Integer bookId);

	CartEntity query(@Param("memberId")Long memberId, @Param("bookId")Integer bookId);
	
}
